#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2017-06-28 14:01:56
# @Author  : Your Name (you@example.org)
# @Link    : http://example.org
# @Version : $Id$

import os
import psycopg2
import logging
import logging.config


class DBHandler(object):
    """docstring for ClassName"""

    def __init__(self, arg):
        super(ClassName, self).__init__()
        self.arg = arg

    """创建数据库链接"""

    def createConn(self):
        pass

    """从数据库读取数据"""

    def readHouseData(self):
        pass

    """写入爬虫数据到数据库"""

    def writeSpiderDataToDB(self):
        pass


if __name__ == '__main__':
	print 'pass'
	for i in range(0,10):
    	print i
